import {
  UPDATE_PRODUCT_DETAIL,
  UPDATE_SHOW_TABS,
  LABE_CHANG_INDEX,
  ROUTING_ID,
  UPDATE_SUM_WIDTH
} from "../actionTypes";
export const updateProductAction = (detail) => {
  return {
    type: UPDATE_PRODUCT_DETAIL,
    payload: detail,
  };
};
export const isShowAllTabs = (detail) => {
  return {
    type: UPDATE_SHOW_TABS,
    payload: detail,
  };
};
export const labeIndex = (detail) => {
  return {
    type: LABE_CHANG_INDEX,
    payload: detail,
  };
};
export const routingId = (detail) => {
  return {
    type: ROUTING_ID,
    payload: detail,
  };
};
export const updateSumWidth = (detail) => {
  return {
    type: UPDATE_SUM_WIDTH,
    payload: detail,
  };
};
export const countTotalNum=(num)=>{
  return {
    type:"SET_TOTAL_NUM",
    payload:num
  }
}
